<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<div class="table-scroll">
       <table id="_list_table" class="table-form table-bordered table-hover table-ellipsis table-fixed">
           <thead>
               <tr>
               	  <th width="5%"><input type="checkbox" name="checkboxall" id="fullCheck" onclick="listTableCheckAll(this)" /></th>
                        <th width="5%">序号</th>
						<th>角色名称</th>
						<th>角色编码</th>
						<th>角色类型</th>
						<th>角色状态</th>
						<th>创建时间</th>

                    </tr>
                </thead>
                <tbody>
                	<c:if test="${ empty pageBean.data}">
            		<td colspan="7">无符合条件数据</td>
           	</c:if>
           	<c:if test="${not empty pageBean.data}">
           	<c:forEach items="${pageBean.data}" var="role" varStatus="seq">
           		<tr>
           			<td><input type="checkbox" name="checkboxOne" id="oneCheck" value="${role.id }"/></td>
           			<td>${seq.count+pageBean.first}</td>
     
           			<td class="text-left" title="${role.name}">${role.name}</td>
           			<td class="text-left" title="${role.roleCode}">${role.roleCode}</td>
           			<td title="${role.roleTypeName}">${role.roleTypeName}</td>
           			<td><c:out value="${'0' eq role.status?'启用':'停用'}" /> </td>
           			<td >${fn:substring(role.createDate,0,10)}</td>
           		</tr>
           </c:forEach>    
           </c:if>                    
         </tbody>
       </table>
   </div>

   <div class="pages">
  <jsp:include page="../common/pager.jsp"></jsp:include>
 </div>
 <script type="text/javascript">
 currentPageNo = parseInt('${pageBean.currentPage}');
 currentPageSize = parseInt('${pageBean.pageSize }');
 totalPageCount = parseInt('${pageBean.totalPage}');
 </script>